package com.zmkj.cn.sys.mapper;


import com.zmkj.cn.comm.vo.SelectVo;
import com.zmkj.cn.comm.vo.TreeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface SysCommonMapper {
    List<TreeVo> getDeptTree(Map<String, Object> queryMap);

    List<Map<String, Object>> getMenuTree(Map<String, Object> paramMap);

    List<SelectVo> getRoleSelect(@Param("deptId") Integer id);

    /**
     * 获取所有的权限列表
     */
    List<SelectVo> getAllRoleList();

    List<TreeVo> getMenuAllTree(Map<String, Object> paramMap);

    List<SelectVo> getDeptSelect(@Param("deptNo") String deptNo);

    List<SelectVo> getDicSelect(@Param("key") String key);

    List<String> getButtonList(Map<String, Object> paramMap);
}
